package com.exahq.service.impl;

import com.exahq.entity.Companydata;
import com.exahq.entity.ResultCompany;
import com.exahq.entity.SelectDataCompany;
import com.exahq.mapper.CompanydataMapper;
import com.exahq.service.CompanydataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lhq
 * @since 2021-02-27
 */
@Service
public class CompanydataServiceImpl extends ServiceImpl<CompanydataMapper, Companydata> implements CompanydataService {

    @Autowired
    private CompanydataMapper companydataMapper;
    @Override
    public int getCount(SelectDataCompany selectData) {
        return companydataMapper.getCount(selectData);
    }

    @Override
    public List<ResultCompany> getByQuery(SelectDataCompany selectData) {
        return companydataMapper.getByQuery(selectData);
    }

    @Override
    public Companydata getDetail(Integer id) {
        return companydataMapper.getDetail(id);
    }

    @Override
    public List<Integer> getSumNumber() {
        return companydataMapper.getSumNumber();
    }

    @Override
    public Integer delete(Integer id) {
        return companydataMapper.deleteById(id);
    }

    @Override
    public List<Companydata> dataByTime() {
        return companydataMapper.dataByTime();
    }

    @Override
    public List<Companydata> dataNew() {
        return companydataMapper.dataNew();
    }

    @Override
    public List<Companydata> selectCompanyData(SelectDataCompany companyData) {
        return companydataMapper.selectCompanyData(companyData);
    }

}
